package com.enjoy.sentinel.common;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class CommonException {

    public static String exceptionHandler(int s, BlockException ex) {
        // Do some log here.
        ex.printStackTrace();
        return "Oops, error occurred at " + s;
    }

    public static String exceptionHandler(BlockException ex) {
        // Do some log here.
        ex.printStackTrace();
        return "限流了";
    }
}
